<template>
    <div class="popupdialog"><!-- ref="popupdialog"-->
     <div class="popupdialog-container">
       <div class="popupdialog-container_icon" @click="offDialog"></div>
       <div class="popupdialog-container_off">
         <img src="../assets/icon/OFF.png" alt="">
       </div>
       <div class="popupdialog-container_msg">
           <p class="">提示</p>
           <p>收货地址保存成功</p>
       </div>
       <div class="register--button">
         <button class="button" @click="offDialog">确定</button>
       </div>
     </div>
    </div>
</template>

<script>
    export default {
        name: "Popup",
        data(){
          return{}
        },
      methods:{
        offDialog(){
          console.log(this.$refs.popupdialog);
          this.$refs.popupdialog.style.display='none';
        }
      }
    }
</script>

<style>
*{
  margin: 0;
  padding: 0;
}
  .popupdialog{
    top: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 10;
    color: #000;
    background: rgba(76,76,76,.7);
    display: block;
  }
  .popupdialog-container{
    width:  8.6666rem;
    height: 5.3333rem;
    position: absolute;
    bottom: 7.8666rem;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: .13333rem;
    margin: auto;
    vertical-align: middle;
  }
  .popupdialog-container_icon{
    width: 1.65333rem;
    height: 1.65333rem;
    border-radius: 50%;
    background: #fff;
    background-image: url("../assets/icon/notice_blue.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    position: absolute;
    left: 41%;
    right: 41%;
    top: -.6666rem;
    box-shadow: 0 -2px 4px 0 rgba(76,76,76,.7);
  }
  .popupdialog-container_off{
    position: absolute;
    right: .4rem;
    top: .2rem;
  }
  .popupdialog-container_off img{
    width: 1.0666rem;
    height:1.0666rem;
  }
  .popupdialog-container_msg{
    margin-top: 1.3333rem;
  }
  .popupdialog-container_msg p:nth-child(1){
    color: #333;
  }
  .popupdialog-container_msg p{
     text-align: center;
     font-size: .42666rem;
     font-weight: 500;
     line-height: .8rem;
  }
  .popupdialog-container_msg p:nth-child(2){
    color: #666;
  }
.register--button{
  text-align: center;
  left: 0;
  right: 0;
  margin-top:.3333rem;
}
.register--button>button{
  width: 6.88rem;
  line-height: 1.1733rem;
  color: white;
  background: #3c9dfc;
  font-size: .4rem;
  border-radius: .5rem;
  outline: none;
  border: none;
}
</style>
